<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>首页</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="/js/layui/css/layui.css" rel="stylesheet">
    <link rel="stylesheet" href="/css/ku2.css">
    <script src="/js/jquery/jquery.min.js"></script>
    <script src="/js/layui/layui.js"></script>
</head>
<body>

    <div class="ku-layout ">
        <header class="ku-header">
            <div class="ku-menu-more layui-show-xs-inline-block   layui-hide-sm" lay-header-event="menuLeft">
                <i class="layui-icon layui-icon-spread-left"></i>
            </div>
            <div class="layui-container ">

                <div class="ku-logo">
                    <a class=" layui-font-30 layui-font-white">
                        xxxx
                    </a>
                </div>

                <ul class="layui-nav ku-menu" id="menu">
                    移动端显示
                    <li class="layui-nav-item "><a href="/">首页</a></li>
                    <li class="layui-nav-item ">
                        <a href="javascript:;">数字化审计工具</a>
                        <dl class="layui-nav-child">
                            <dd><a href="javascript:;">数字化审计工具</a></dd>
                            <dd><a href="javascript:;">需求与建议</a></dd>
                            <dd><a href="javascript:;">联系人</a></dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item  "><a href="javascript:;">Audit Pursuit</a></li>
                    <li class="layui-nav-item ">
                        <a href="javascript:;">GenAI</a>
                        <dl class="layui-nav-child">
                            <dd class="layui-this"><a href="javascript:;">用户使用提示</a></dd>
                            <dd><a href="javascript:;">审计应用案例</a></dd>
                            <dd><a href="javascript:;">创新提议</a></dd>
                        </dl>
                    </li>
                </ul>
                <div class="ku-search">
                    <input type="text" placeholder="搜索...">
                    <button>搜索</button>
                </div>
            </div>
        </header>
        <main class="ku-main ">
            <div class="layui-container">
                <nav class="ku-side">
                    <div class="layui-card">
                        <div class="layui-card-body">
                            <ul class="layui-nav  layui-nav-tree">
                                <!-- 移动端显示 -->
                                <li class="layui-nav-item "><a href="/">首页</a></li>
                                <li class="layui-nav-item ">
                                    <a href="javascript:;">数字化审计工具</a>
                                    <dl class="layui-nav-child">
                                        <dd><a href="javascript:;">数字化审计工具</a></dd>
                                        <dd><a href="javascript:;">需求与建议</a></dd>
                                        <dd><a href="javascript:;">联系人</a></dd>
                                    </dl>
                                </li>
                                <li class="layui-nav-item  "><a href="javascript:;">Audit Pursuit</a></li>
                                <li class="layui-nav-item ">
                                    <a href="javascript:;">GenAI</a>
                                    <dl class="layui-nav-child">
                                        <dd class="layui-this"><a href="javascript:;">用户使用提示</a></dd>
                                        <dd><a href="javascript:;">审计应用案例</a></dd>
                                        <dd><a href="javascript:;">创新提议</a></dd>
                                    </dl>
                                </li>
                            </ul>
                        </div>
                    </div>

                </nav>
                <div class="ku-body layui-clear">
                    <div class="layui-card">
                        <div class="layui-card-body">
                            <ul class="layui-row layui-col-space15">

                                <li class="layui-col-md2 layui-anim layui-anim-fadein">
                                    <div class="ku-card">
                                        <div class="ku-card-header">
                                            <div class="ku-card-iconfont layui-icon layui-icon-moon"></div>
                                            <div class="ku-card-title layui-elip"><a href="/jsonlint.html">JSON校验（jsonlint）</a></div>
                                        </div>
                                        <p class="ku-card-body layui-elip">
                                            在线JSON视图编辑，JSON层级编辑展示。 在线JSON视图编辑，JSON层级编辑展示。
                                        </p>
                                    </div>
                                </li>

                                <li class="layui-col-md2 layui-anim layui-anim-fadein">
                                    <div class="ku-card">
                                        <div class="ku-card-header">
                                            <div class="ku-card-iconfont layui-icon layui-icon-moon"></div>
                                            <div class="ku-card-title layui-elip"><a href="/codemirror.html">codemirror编辑器</a></div>
                                        </div>
                                        <p class="ku-card-body layui-elip">
                                            codemirror编辑器
                                        </p>
                                    </div>
                                </li>

                                <li class="layui-col-md2 layui-anim layui-anim-fadein">
                                    <div class="ku-card">
                                        <div class="ku-card-header">
                                            <div class="ku-card-iconfont layui-icon layui-icon-moon"></div>
                                            <div class="ku-card-title layui-elip"><a href="/jsonviewer.html" target="_blank">json视图</a></div>
                                        </div>
                                        <p class="ku-card-body layui-elip">
                                            json视图
                                        </p>
                                    </div>
                                </li>
                                <li class="layui-col-md2 layui-anim layui-anim-fadein">
                                    <div class="ku-card">
                                        <div class="ku-card-header">
                                            <div class="ku-card-iconfont layui-icon layui-icon-moon"></div>
                                            <div class="ku-card-title layui-elip"><a href="/jsoneditor.html">jsoneditor编辑器</a></div>
                                        </div>
                                        <p class="ku-card-body layui-elip">
                                            jsoneditor编辑器
                                        </p>
                                    </div>
                                </li>
                            </ul>
                        </div>
                    </div>
                    <div class="layui-card">
                        <div class="layui-card-body">
                            <div class="layui-row" style="height:2500px;background:#fff;"></div>

                        </div>
                    </div>
                </div>
            </div>
        </main>
        <footer class="ku-footer">
            <div class="layui-container">
                <p class="footer-statement">本站申明：本网站部分工具是站长整合网上已有工具、开源包等，并全部遵循原有协议发布，著作权归属原作者或是团队。</p>
                <p class="footer-copyright">
                    Copyright © 2011-2021  All rights
                    reserved. &nbsp;&nbsp;&nbsp;&nbsp;<a rel="nofollow" href="https://beian.miit.gov.cn/" style="color: #CCC;" target="_blank">闽ICP备20009294号-1</a>&nbsp;&nbsp;&nbsp;&nbsp;<a rel="nofollow" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=35021102001143" style="color: #CCC;" target="_blank">闽公网安备 35021102001143号</a>
                </p>
            </div>
        </footer>
    </div>

    <script>
        //JS
        layui.use(['element', 'layer', 'util'], function () {
            var element = layui.element;
            var layer = layui.layer;
            var util = layui.util;
            var $ = layui.$;

            //头部事件
            util.event('lay-header-event', {
                menuLeft: function (othis) { // 左侧菜单事件
                    //layer.msg('展开左侧菜单的操作', { icon: 0 });
                    var menuHtml = $("#menu").html();
                    layer.open({
                        type: 1,
                        title: false,
                        closeBtn: false,
                        content: '<div class="layui-nav layui-nav-tree" style="width: auto;height: 100%;">' + menuHtml + '</div>',
                        area: ['50%', '100%'],
                        offset: 'lt', // 右上角
                        anim: 'slideRight', // 从右侧抽屉滑出
                        shadeClose: true,
                        scrollbar: true,
                        success: function () {
                            element.render('nav'); //重新对导航进行渲染。注：layui 2.1.6 版本新增
                        }
                    });
                }
            });
        });

    </script>
    <script>
        $(document).ready(function () {
            // 获取header元素
            const $header = $('#header');
            const $layout = $('.ku-layout');

            // 定义滚动阈值（单位：像素）
            const scrollThreshold = 60;

            // 监听scroll事件
            $(window).on('scroll', function () {
                // 获取当前的滚动位置
                const currentScrollTop = $(this).scrollTop();

                // 判断是否需要隐藏header
                if (currentScrollTop >= scrollThreshold) {
                    // 隐藏header
                    $layout.addClass('ku-layout-fx');
                } else {
                    // 显示header
                    $layout.removeClass('ku-layout-fx');
                }
            });

            // 初始化状态
            $(window).scrollTop(0); // 确保初始状态正确
        });
    </script>
</body>

</html>